<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
	<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *;script-src * 'unsafe-inline'">
    <title>Hello World!</title>
   
  </head>
    
  <body>
    <button id="123" type="button" >默认按钮</button>
	 <script>
	 const ipcRenderer = require('electron').ipcRenderer;
	let btnNewwin = document.getElementById("123");
	btnNewwin.onclick = function(){
		
		ipcRenderer.send('openlogin', '我是渲染进程的test2');
	};
</script>
  </body>
  

</html>

